-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
[R] Fix winbuilder check warnings. #11830
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR addresses R package check warnings by making several corrections across the codebase. The changes include proper handling of cache directory paths, updating C function declarations to use proper parameter specifications, relocating configuration headers to the correct directory, and adding thread control directives in R documentation examples.
Key changes:
- Enhanced cache path handling to properly detect and handle directory inputs in the
MakeCachePrefixfunction - Fixed C function declarations to use
(void)instead of()for parameterless functions, which is the correct C standard practice - Relocated
config.hfrom the R package root to thesrc/subdirectory for proper R package structure
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/data/sparse_page_source.cc | Added directory detection logic to cache prefix handling and updated copyright year |
| tests/cpp/helpers.cc | Updated test to use MakeCachePrefix wrapper for consistency with production code |
| ops/script/test_r_package.py | Added removal of bootstrap.R file during R package creation |
| R-package/src/init.c | Fixed function declarations to use (void) instead of () for parameterless functions |
| R-package/src/config.h.in | Updated generated file comment to reflect correct path |
| R-package/configure.ac | Changed config header path from config.h to src/config.h |
| R-package/configure | Regenerated configure script with updated config header path |
| R-package/man/predict.xgb.Booster.Rd | Added thread control directive for R CMD check |
| R-package/man/a-compatibility-note-for-saveRDS-save.Rd | Added thread control directive for R CMD check |
| R-package/R/xgb.Booster.R | Added thread control directive in example documentation |
| R-package/R/utils.R | Added thread control directive in example documentation |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Uh oh!
There was an error while loading. Please reload this page.